<UserControl
	x:Class="Goldlight.SampleApplication.Views.MenuView"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:local="clr-namespace:Goldlight.SampleApplication.ViewModels"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cmd="clr-namespace:Goldlight.Mvvm.Base.Command;assembly=Goldlight.Mvvm.Base"
    xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase"
	Height="80"
	mc:Ignorable="d">
    <UserControl.Resources>
        <local:MenuViewModel x:Key="ViewModel"/>
    </UserControl.Resources>
    <ToolBarTray 
        HorizontalAlignment="Stretch" 
        VerticalAlignment="Top" 
        Background="{DynamicResource BrightBlueSolidBrush1}" 
        DataContext="{StaticResource ViewModel}">
        <ToolBar
			x:Name="toolBar"
			Width="{Binding ActualWidth, ElementName=tray, Mode=Default}"
			Background="{DynamicResource BrightBlueSolidBrush1}"
			IsEnabled="True"
			IsHitTestVisible="True"
			Style="{DynamicResource MenuToolBarWithWrapStyle}"
			>
            <Menu VerticalAlignment="Top" Background="{x:Null}">
                <MenuItem Header="{Binding Resources.FileMenu}" Background="{x:Null}" Style="{DynamicResource MenuItemStyle}" >
                    <MenuItem Header="{Binding Resources.NewMenu}">
                        <MenuItem Header="{Binding Resources.ContactMenu}" Command="{Binding NewContactCommand}">
                            <MenuItem.Icon>
                                <Image Source="/Images/user_add.png" />
                            </MenuItem.Icon>
                        </MenuItem>
                    </MenuItem>
                    <Separator Style="{DynamicResource MenuItemSeparatorStyle}"/>
                    <MenuItem Command="{Binding ExitCommand}" Header="{Binding Resources.ExitMenu}" />
                </MenuItem>
            </Menu>
        </ToolBar>
    </ToolBarTray>
</UserControl>